home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000165_fdc@columbia.edu_Mon Dec 9 13:45:31 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  39 lines

  1. Article: 13946 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Help with date/time formatting in kermit
  6. Date: 9 Dec 2002 13:45:25 -0500
  7. Organization: Columbia University
  8. Lines: 22
  9. Message-ID: <at2oc5$i9$1@watsol.cc.columbia.edu>
  10. References: <at2nlt$s8p$1@cpimail.cpicorp.com>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1039459526 14204 128.59.39.139 (9 Dec 2002 18:45:26 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 9 Dec 2002 18:45:26 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13946
  16.  
  17. In article <at2nlt$s8p$1@cpimail.cpicorp.com>,
  18. Derek Chen-Becker  <dbecker@cpicorp.com> wrote:
  19. :      I'm trying to generate a timestamp file with a filename including 
  20. : the FTP MDTM formatted time (YYYYMMDDhhmmss) and I was wondering if 
  21. : there's a better way to do it than:
  22. : assign parts \fsplit(\v(time),&t,":")
  23. : assign filename timestamp.\v(ndate)\fjoin(&t,"",0,1)
  24. This is simpler:
  25.  
  26.   \fsubstitute(\v(timestamp),:\32,)
  27.  
  28. : I was reading the kermit 7.0 and 8.0 supplements along with our copy of 
  29. : "Using C-Kermit", and although it looks like kermit can parse a lot of 
  30. : different date formats, I can't figure out how to make it write to a 
  31. : specific date format.
  32. :
  33. Dates are always output in the same (easily parsable) format, but you
  34. you can use string and other functions to reformat them any way you want.
  35.  
  36. - Frank
  37.